/**
 * 用户接口
 */

import api from './api'

/**
 * 医生登录
 * @param data
 * @param options
 */
// 患者小程序登录授权
function wechatLogin (data, options) {
  return api.request('/user/wechat/on_login', data, options)
}
// 绑定患者手机号和长航医院账号
function bindPhone (data, options) {
  return api.request('/user/wechat/bind_phone', data, options)
}
// 个人信息
function userInfo (data, options) {
  return api.request('/user/info', data, options)
}
// 获取验证码
function getSmsAuthCode (data, options) {
  return api.request('/user/getSmsAuthCode', data, options)
}
// 获取预约记录
function appointmentList (data, options) {
  return api.request('/appointment/list', data, options)
}
// 获取预约记录详情
function appointmentDetail (data, options) {
  return api.request('/appointment/detail', data, options)
}
function login (data, options) {
  return api.request('/user/login', data, options)
}
function appointment_list (data, options) {
  return api.request('appointment/get/diagnosing/apt', data, options)
}
function doctor_list (data, options) {
  return api.request('/doctor/get/random/doctor', data, options)
}
function user_statistics (data, options) {
  return api.request('user/mobile/statistics', data, options)
}
function update_passwd (data, options) {
  return api.request('/user/update_passwd', data, options)
}
function idCard_upload (data, options) {
  return api.request('/user/card_id/upload', data, options)
}
function get_user_info (data, options) {
  return api.request('/user/info', data, options)
}
function user_card_id_upload (data, options) {
  return api.request('/user/card_id/upload', data, options)
}
function user_update (data, options) {
  return api.request('/user/update', data, options)
}
// 挂号左边二级科室
function deptList (data, options) {
  return api.request('/arrangeinfo/second/dept/list', data, options)
}
// 挂号右边三级科室
function multistageDeptList (data, options) {
  return api.request('/arrangeinfo/dept/list', data, options)
}
// 医生列表
function doctorList (data, options) {
  return api.request('/doctor/special/doctor/list', data, options)
}
// 获取常用就诊人信息
function regularList (data, options) {
  return api.request('/user/regular_list', data, options)
}
// 上传病例资料
function save (data, options) {
  return api.request('/appointment/special/confirm', data, options)
}
// 图片上传
function uploadImage (data, options) {
  return api.request('/emr/upload_image', data, options)
}
// 预约成功页面
function detail (data, options) {
  return api.request('/appointment/detail', data, options)
}
// 预约成功页面
function doctorDetails (data, options) {
  return api.request('/doctor/special/doctor/details', data, options)
}
// 搜索
function searchDoctor (data, options) {
  return api.request('/doctor/wechat/query/dept', data, options)
}
// 获取电子病历
function emrInfo (data, options) {
  return api.request('/emr/info', data, options)
}
// 获取正在进行的预约
function ongoingAppointment (data, options) {
  return api.request('/comment/get/ongoing/appointment', data, options)
}
// 获取患者个人资料
function queryUserinfo (data, options) {
  return api.request('/user/info', data, options)
}
// 获取历史服务
function historyList (data, options) {
  return api.request('/appointment/list', data, options)
}
// 获取历史服务
function updateUserinfo (data, options) {
  return api.request('/user/mobile/update', data, options)
}
// 获取历史服务
function medicareCard (data, options) {
  return api.request('/user/medicare_card/upload', data, options)
}
// 获取所有消息
function getInformationList (data, options) {
  return api.request('/comment/get/information/list', data, options)
}
// 获取处方订单列表
function prescriptionList (data, options) {
  return api.request('/prescription/list/info', data, options)
}
// 获取处方笺
function prescriptionPdf (data, options) {
  return api.request('/prescription/get/pdf', data, options)
}
// 添加处方收货地址
function addAddress (data, options) {
  return api.request('/user/add/shipping/address', data, options)
}
// 复杂处方收货地址、门店自取
function complicateAddAddress (data, options) {
  return api.request('/user/submit/address', data, options)
}
// 获取门店地址列表
function addStoreAddress (data, options) {
  return api.request('/prescription/store_address', data, options)
}
//医保卡上传
function medicare_card_upload (data, options) {
  return api.request('/user/medicare_card/upload', data, options)
}
//医保卡认证
function social_security_verified (data, options) {
  return api.request('/user/social_security/verified', data, options)
}
//常用就诊人
function user_regular_list (data, options) {
  return api.request('/user/regular_list', data, options)
}
//单个就诊人信息
function user_query_regular (data, options) {
  return api.request('user/query/regular', data, options)
}
//新增/修改常用就诊人
function user_regular_save (data, options) {
  return api.request('/user/regular_save', data, options)
}
//删除就诊人/user/regular_delete
function user_regular_delete (data, options) {
  return api.request('/user/regular_delete', data, options)
}
// 保存个人评价
function commentSave (data, options) {
  return api.request('/comment/save', data, options)
}
// 获取专家数据
function getDoctorList (data, options) {
  return api.request('/arrangeinfo/getArrangeInfo', data, options)
}
// 判断一周内该专家是否有排班
function haveArrangeByWeek (data, options) {
  return api.request('/arrangeinfo/expert/arrange/week', data, options)
}
// 获取专科数据
function getDeptList (data, options) {
  return api.request('/appointment/preConfirm/info', data, options)
}
// 专科挂号
function saveDeptDoctor (data, options) {
  return api.request('/appointment/confirm', data, options)
}
// 通过id获取医生版块信息
function getDoctorInfo (data, options) {
  return api.request('/arrangeinfo/doctor/arrangeInfo', data, options)
}
// 获取专家医生后续排版
function getDoctorLater (data, options) {
  return api.request('/arrangeinfo/special/doctor/later', data, options)
}
// 区分专家转科图文音频的预约列表
function apptList (data, options) {
  return api.request('/appointment/get/appt/list', data, options)
}
// 读取消息内容
function isReading (data, options) {
  return api.request('/comment/is_reading', data, options)
}
// 删除消息
function deleteInfo (data, options) {
  return api.request('/comment/delete/info', data, options)
}
// 全部标记为已读
function readAll (data, options) {
  return api.request('/comment/read/all', data, options)
}
// 公告详情
function remindDetail (data, options) {
  return api.request('/comment/wechat/get/info/detail', data, options)
}
// 获取特殊三级科室
function getDeptLink (data, options) {
  return api.request('/doctor/query/dept_link', data, options)
}
// 获取BizToken
function getBizToken (data, options) {
  return api.request('/tencentcloud/BizToken', data, options)
}
// 人脸核身结束获取校验结果
function getDetectResult (data, options) {
  return api.request('/tencentcloud/detect_result', data, options)
}
// 云诊间页面详情
function getConsultingRoomInfo (data, options) {
  return api.request('/appointment/consultingRoom/infos', data, options)
}
// 云诊间取消预约
function isCancle (data, options) {
  return api.request('/appointment/cancle', data, options)
}
// 获取预约规则
function appointmentBookingRules (data, options) {
  return api.request('/appointment/booking/rules', data, options)
}
// 支付接口
function orderPayWechatMini (data, options) {
  return api.request('/order/pay/wechat_mini', data, options)
}
//申请退款
function requestRefund (data, options) {
  return api.request('/appointment/request/refund', data, options)
}
//诊疗订单支付提示
function pay_hint (data, options) {
  return api.request('/inspection/pay/hint', data, options)
}
// 支付状态
function appointmentPayResultGet (data, options) {
  return api.request('/appointment/payResult/get', data, options)
}
// 医保卡补录
function userInsuranceCardSupplement (data, options) {
  return api.request('/user/insurance_card/supplement', data, options)
}
//医保支付
function payinsuranceUnifiedorder (data, options) {
  return api.request('/wechat/payinsurance/unifiedorder', data, options)
}
//付款确认
function orderPayItemDetail (data, options) {
  return api.request('/order/pay/item_detail', data, options)
}
// 身份证识别
function userCardIdDistinguish (data, options) {
  return api.request('/user/card_id/distinguish', data, options)
}
// 医保卡上传(实名流程优化)
function userMedicareCardNew (data, options) {
  return api.request('/user/medicare_card/upload/new', data, options)
}
// 医保卡识别
function userMedicareCardDistinguish (data, options) {
  return api.request('/user/medicare_card/distinguish', data, options)
}
// 诊疗订单一级列表
function inspectionCheckOrderFirst (data, options) {
  return api.request('/inspection/check/order/list', data, options)
}
// 诊疗订单二级列表
function inspectionCheckOrderSecond (data, options) {
  return api.request('/inspection/check/order/detail', data, options)
}
// 诊疗订单三级列表
function inspectionCheckOrderThird (data, options) {
  return api.request('/inspection/check/detail', data, options)
}
// 预约模糊查询
function doctorConsultDoctorQuery (data, options) {
  return api.request('/doctor/consult_doctor/query', data, options)
}
// //获取支付结果
// function appointmentPayResultGet (data, options) {
//   return api.request('/appointment/payResult/get', data, options)
// }

// 保存、修改病例信息
function userRegularCaseModify (data, options) {
  return api.request('/user/regular_case/modify', data, options)
}
// 获取就诊人病例信息
function userRegularCaseQuery (data, options) {
  return api.request('/user/regular_case/query', data, options)
}
// 首页新闻信息
function getIndexNewsList (data, options) {
  return api.request('/index_news/list', data, options)
}
// 更改预约时间
function changeSpecialDiagnosis (data, options) {
  return api.request('/appointment/change/special/diagnosis', data, options)
}
// 获取留言消息列表
function getLeaveMsg (data, options) {
  return api.request('/chat/get', data, options)
}
// 发送留言信息
function sendMessage (data, options) {
  return api.request('/chat/send', data, options)
}
// 线下就医列表
function offlineAppointment (data, options) {
  return api.request('/offline_appointment/patient/apt_list', data, options)
}
// 获取所有医生职称
function getAllDocPosition (data, options) {
  return api.request('/doctor/positional_title', data, options)
}
// 标记已读语音
function updateSoundStates (data, options) {
  return api.request('/chat/update_sound_status', data, options)
}
// 首页问诊活跃的订单数
function orderAliveCount (data, options) {
  return api.request('/order/alive_count', data, options)
}
// 获取反馈信息
function getUserFeedbackList (data, options) {
  return api.request('/user/feedback/list', data, options)
}
// 获取反馈信息详情
function getUserFeedbackDetail (data, options) {
  return api.request('/user/feedback/detail', data, options)
}
// 提交反馈信息
function commitFeedback (data, options) {
  return api.request('/user/feedback/commit', data, options)
}
// 线下挂号逾期未支付到期 调用
function offlineAppointmentOvertime (data, options) {
  return api.request('/offline_appointment/overtime_order', data, options)
}
// 消息管理提示红点
function commentUnreadStatistic (data, options) {
  return api.request('/comment/unread/statistic', data, options)
}
// 获取收货地址列表
function getAddressList (data, options) {
  return api.request('/address/list', data, options)
}
// 新增收货地址
function saveNewAddress (data, options) {
  return api.request('/address/save', data, options)
}
// 删除收货地址
function deleteAddress (data, options) {
  return api.request('/address/delete', data, options)
}
// 收货地址详情
function getAddressInfo (data, options) {
  return api.request('/address/info', data, options)
}
// 编辑现有收货地址
function editAddressInfo (data, options) {
  return api.request('/address/update', data, options)
}
// 处方详情
function getPrescriptionDetail (data, options) {
  return api.request('/prescription/detail/info', data, options)
}
// 当天直播列表
function getLiveTodayList (data, options) {
  return api.request('/live/today_list', data, options)
}
// 获取聊天室地址
function liveGetChatroomAddress (data, options) {
  return api.request('/live/get_chatroom_address', data, options)
}
// 判断是否存在未支付的诊疗订单
function prescriptionNonPayment (data, options) {
  return api.request('/prescription/check/non_payment', data, options)
}
// 开药专区 科室列表
function prescriptDeptLit (data, options) {
  return api.request('/hospital/prescribe_dept', data, options)
}
// 开药专区 排班列表
function arrangeinfoPrescribe (data, options) {
  return api.request('/arrangeinfo/get/prescribe/schedule', data, options)
}
// 票据管理 列表
function userInvoiceManage (data, options) {
  return api.request('/user/invoice/manage', data, options)
}
// 开票
function userInvoiceIssue (data, options) {
  return api.request('/user/invoice/issue', data, options)
}
// 票据单项刷新
function userInvoiceRefresh (data, options) {
  return api.request('/user/invoice/refresh', data, options)
}
// 地址
function addressZoneList (data, options) {
  return api.request('/address/zone/list', data, options)
}
// 健康直播首页
function healthHomepage (data, options) {
  return api.request('/user/health_education/homepage', data, options)
}
// 健康直播  分类下科室
function videoTypeDept (data, options) {
  return api.request('/user/video_type/dept', data, options)
}
// 健康直播  分类下所属视频
function videoTypeDeptSearch (data, options) {
  return api.request('/user/video_type/lecture_video', data, options)
}
// 健康直播  模糊搜索视频
function keywordSearch (data, options) {
  return api.request('/user/video_type/search', data, options)
}
// 取消套餐包
function cancelSetMeal (data, options) {
  return api.request('/inspection/cancel/check/order', data, options)
}
// 设置常用就诊人类型(自费/医保)
function setFeeTypeCode (data, options) {
  return api.request('/user/regular_fee_type_code', data, options)
}
export default {
  cancelSetMeal,
  keywordSearch,
  videoTypeDeptSearch,
  videoTypeDept,
  healthHomepage,
  userInvoiceManage,
  userInvoiceIssue,
  userInvoiceRefresh,
  addStoreAddress,
  arrangeinfoPrescribe,
  prescriptDeptLit,
  getPrescriptionDetail,
  prescriptionNonPayment,
  getLiveTodayList,
  editAddressInfo,
  getAddressList,
  saveNewAddress,
  deleteAddress,
  getAddressInfo,
  wechatLogin,
  commentUnreadStatistic,
  bindPhone,
  userInfo,
  getSmsAuthCode,
  appointmentList,
  appointmentDetail,
  login,
  doctor_list,
  appointment_list,
  user_statistics,
  update_passwd,
  idCard_upload,
  get_user_info,
  user_card_id_upload,
  user_update,
  deptList,
  multistageDeptList,
  doctorList,
  regularList,
  save,
  uploadImage,
  detail,
  doctorDetails,
  searchDoctor,
  emrInfo,
  // ongoingAppointment,
  queryUserinfo,
  historyList,
  updateUserinfo,
  medicareCard,
  prescriptionList,
  prescriptionPdf,
  addAddress,
  medicare_card_upload,
  user_regular_list,
  social_security_verified,
  user_regular_save,
  user_query_regular,
  user_regular_delete,
  commentSave,
  apptList,
  ongoingAppointment,
  getDoctorList,
  getDeptList,
  saveDeptDoctor,
  getDoctorInfo,
  getDoctorLater,
  getDeptLink,
  getBizToken,
  getDetectResult,
  getConsultingRoomInfo,
  isCancle,
  getInformationList,
  isReading,
  deleteInfo,
  readAll,
  remindDetail,
  appointmentBookingRules,
  orderPayWechatMini,
  requestRefund,
  pay_hint,
  appointmentPayResultGet,
  userInsuranceCardSupplement,
  payinsuranceUnifiedorder,
  orderPayItemDetail,
  userCardIdDistinguish,
  userMedicareCardNew,
  userMedicareCardDistinguish,
  inspectionCheckOrderFirst,
  inspectionCheckOrderSecond,
  inspectionCheckOrderThird,
  userRegularCaseModify,
  userRegularCaseQuery,
  doctorConsultDoctorQuery,
  getIndexNewsList,
  haveArrangeByWeek,
  changeSpecialDiagnosis,
  getLeaveMsg,
  sendMessage,
  offlineAppointment,
  getAllDocPosition,
  updateSoundStates,
  orderAliveCount,
  getUserFeedbackList,
  getUserFeedbackDetail,
  commitFeedback,
  offlineAppointmentOvertime,
  liveGetChatroomAddress,
  complicateAddAddress,
  addressZoneList,
  setFeeTypeCode
}
